<template>
  <div class="dashboard-editor-container">
    <div class="head">
      <div class="top">
        <el-form ref="form" :model="form" label-width="100px">
          <el-form-item label="账单发送日期:">
            <el-date-picker
              v-model="form.date"
              type="date"
              placeholder="年/月/日">
            </el-date-picker>
            <span class="dash">~</span>
            <el-date-picker
              v-model="form.finaldate"
              type="date"
              placeholder="年/月/日">
            </el-date-picker>
          </el-form-item>
          <el-form-item label="批次名称:">
            <el-input type="text" v-model="form.batch" placeholder=""></el-input>
            <el-button type="success">查询</el-button>
          </el-form-item>
        </el-form>
      </div>
      <div class="foot">
        <el-button type="primary">新建</el-button>
      </div>
    </div>
    <div class="main">
      <div class="body">
        <el-table
          :data="tableData"
          border
          style="width: 100%"
          :header-cell-style="{background:'#f5f4f4'}">
          <el-table-column
            prop="batchname"
            label="批次名称"
            width="300">
          </el-table-column>
          <el-table-column
            prop="time"
            label="账单发送时间"
            width="280">
          </el-table-column>
          <el-table-column
            prop="finaltime"
            label="收费截止时间"
            width="280">
          </el-table-column>
          <el-table-column
            prop="total"
            label="账单总数"
            width="210">
          </el-table-column>
          <el-table-column
            prop="paid"
            label="已缴费"
            width="200">
          </el-table-column>
          <el-table-column
            prop="unpaid"
            label="未缴费"
            width="200">
          </el-table-column>
          <el-table-column
            prop="other"
            label="操作"
            width="380">
          </el-table-column>
        </el-table>
        <div class="block">
          <el-pagination
            :current-page.sync="currentPage"
            :page-sizes="[10, 20, 30, 40]"
            :page-size="100"
            layout="prev, pager, next, sizes, jumper"
            :total="100">
          </el-pagination>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import  PanelGroup from './PanelGroup';
import LineChart from './LineChart';
export default {
  name: 'Dashboard',
  data(){
    return{
      value1:"",
      value2:"",
      name:"",
      currentPage: 1,
      tableData:[
        {batchname:"2017年春季费用",time:"2019-04-21 12:12:00",finaltime:"2019-04-30 12:12:00",total:"12",paid:"10",unpaid:"2",other:"查看 下载 下载通知单 延期"},
        {batchname:"2017年春季费用",time:"2019-04-21 12:12:00",finaltime:"2019-04-30 12:12:00",total:"12",paid:"10",unpaid:"2",other:"查看 下载 下载通知单 延期"},
        {batchname:"2017年春季费用",time:"2019-04-21 12:12:00",finaltime:"2019-04-30 12:12:00",total:"12",paid:"10",unpaid:"2",other:"查看 下载 下载通知单 延期"}
      ],
      form:{
        date:'',
        finaldate:'',
        batch:''
      },
      forms:{
        batchname:'',
        finaltime:'',
        class:'',
        student:'',
        billname:'',
        mobile:'',
        date:'',
        money:'',
        remarks:''
      }
    }
  },
  components:{
    PanelGroup,LineChart
  },
  mounted(){  
  },
  computed: {
  },
  methods: {
    
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard-editor-container {
  width: 100%;
  height: 800px;
  margin-top: 20px;
  margin-left: 20px;
  background:#fff;
  position: relative;
}
.head{
  width: 100%;
  height: 120px;
  .top{
    width: 94%;
    height: 50px;
    margin: 0 auto;
    padding-top: 20px;
    /deep/ .el-form-item__content{
      display: inline-block;
      margin-left: 0 !important;
    }
    /deep/ .el-form-item{
      display: inline-block;
    }
    /deep/ .el-form-item__label{
      width: 101px !important;
    }
    /deep/ .el-input{
      width: auto;
    }
  }
  .foot{
    margin-left: 55px;
    margin-top: 25px;
  }
}
.main{
  width:100%;
  height:600px;
  .body{
    width: 100%;
    height: auto;
    /deep/ .el-table td, .el-table th.is-leaf, .el-table th{
      text-align: center;
    }
  /deep/ .el-table th{
      text-align: center;
    }
    /deep/ .el-table_2_column_20{
      color: #109CEF;
    } 
    .block{
      float: right;
      margin-top: 20px;
      margin-right: 20px;
      /deep/ .el-pagination button{
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-right: 10px;
      }
      /deep/ .el-pager li{
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-right: 10px;
      }
      /deep/ .el-pager li.active{
        background: #409EFF;
        color: #fff;
        border: none;
      }
    }
  }
}
</style>
